import request from '@/utils/request'

// 查询采购进仓规整数据列表
export function listBiPurchaseInWarehouse(query) {
  return request({
    url: '/financial/BiPurchaseInWarehouse/list',
    method: 'get',
    params: query
  })
}

// 查询采购进仓规整数据详细
export function getBiPurchaseInWarehouse(id) {
  return request({
    url: '/financial/BiPurchaseInWarehouse/' + id,
    method: 'get'
  })
}

// 新增采购进仓规整数据
export function addBiPurchaseInWarehouse(data) {
  return request({
    url: '/financial/BiPurchaseInWarehouse',
    method: 'post',
    data: data
  })
}
// 新增采购进仓规整数据
export function initData(data) {
  return request({
    url: '/financial/BiPurchaseInWarehouse/initData',
    method: 'post',
    data: data
  })
}
// 修改采购进仓规整数据
export function updateBiPurchaseInWarehouse(data) {
  return request({
    url: '/financial/BiPurchaseInWarehouse',
    method: 'put',
    data: data
  })
}

// 删除采购进仓规整数据
export function delBiPurchaseInWarehouse(id) {
  return request({
    url: '/financial/BiPurchaseInWarehouse/' + id,
    method: 'delete'
  })
}
